package com.example.ivideo_2211a.commodity

import com.example.common.mvi.Res
import retrofit2.http.GET
import retrofit2.http.Query

interface CommondityApi {
    @GET("http://10.161.9.80:7012/goods/info?category_id=0&currentPage=1&pageSize=10")
    suspend fun getCommodityList(): Res<List<CommondityEntity>>
    
    @GET("http://10.161.9.80:7012/goods/detail")
    suspend fun getGoodsDetail(@Query("goods_id") goodsId: Int): Res<GoodsDrtailData>
}